const util = require("./util");//加载模块
module.exports.calc = function (num1 = 0, num2 = 0, type = 'add') {
    let result = 0;
    switch (type) {
        case 'add':
            result = util.add(num1, num2);
            break;
        case 'jian':
            result = util.jian(num1, num2);
            break;
    }
    return result;
};